package Demo1;

public class Fruit {
    private String name;
    private String origin;//产地
    private double price;//单位：元/斤

    public Fruit() {
    }

    public Fruit(String name, String origin, double price) {
        this.name = name;
        this.origin = origin;
        this.price = price;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getOrigin() {
        return origin;
    }

    public void setOrigin(String origin) {
        this.origin = origin;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    public void bloom() {
        System.out.println("开花");
    }
    public void bearFruit() {
        System.out.println("结果");
    }
    public void bePicked() {
        System.out.println("被采摘");
    }
}
